<?php
namespace app\search\controller;
use think\Request;
use think\Response;
use app\common\lib\Htmlp;
use app\common\controller\Base;

class Search extends Base
{
    public function index()
    { 
        $keywords = Htmlp::htmlp(trim(input('param.q')," \t\n\r\0\x0B"));
        $page = Htmlp::htmlp(trim(input('param.page')," \t\n\r\0\x0B"));
        $page = $page ? $page : 1;
        set_time_limit(30);

        $itemInfo['title'] = $keywords;
        $itemInfo['keywords'] = $keywords;
        $itemInfo['description'] = $keywords;
        
        $this->assign('itemInfo',$itemInfo);
        $this->assign('page',$page);
        
        return $this->siteView('search/search');
    }
    
}
